package com.sky.api.client;


import com.sky.entity.AddressBook;
import com.sky.entity.Dish;
import com.sky.entity.Setmeal;
import com.sky.entity.ShoppingCart;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;

import java.util.List;

@FeignClient("pay-service")
public interface PayClient {
    @GetMapping("/user/shoppingCart/listshoopCart")
    public List<ShoppingCart> listShoppingCart(ShoppingCart shoppingCart);

    @DeleteMapping("/user/shoppingCart/deletes")
    public void deleteByIdshoppingCart(Long userId);

    @PutMapping("/user/shoppingCart//insertShopping")
    public void insertBatchshopping(List<ShoppingCart> shoppingCartList);

    @GetMapping("/user/addressBook/addgetbyIds")
    public AddressBook getByAddressBook(Long id);
}
